import { Component } from '@angular/core';

// import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
// import { BackgroundMode } from '@ionic-native/background-mode';

import { Platform } from '@ionic/angular';
import { AppMinimize } from '@ionic-native/app-minimize/ngx';

@Component({
  selector: 'app-root',
  templateUrl: 'app.component.html'
})
export class AppComponent {
  constructor(
    // private platform: Platform,
    // private splashScreen: SplashScreen,
    private statusBar: StatusBar,
    private platform: Platform, 
    // private appMinimize: AppMinimize
    // private backgroundMode: BackgroundMode,
  ) {
    this.initializeApp();
    // this.statusBar.backgroundColorByHexString("#4eadb7");
    // this.statusBar.overlaysWebView(false);
    this.statusBar.overlaysWebView(false);
    this.statusBar.backgroundColorByHexString('#334098a2');
    // this.backgroundMode.enable();
  }

  initializeApp() {
    this.platform.ready().then(() => {
      
    //   this.platform.registerBackButtonAction(() => {
    //     this.appMinimize.minimize();
    //  });
    });
  }
}
